-- GENERATED SPELL FOR [Guerrero] --


function spell0_28163(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28163', 15000, 1)
end

function spell1_28163(pUnit, Event) --@Threatening Growl,n/a--
pUnit:FullCastSpellOnTarget(50739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28163', 31000, 1)
end

function Sorts_28163(pUnit, Event)
local choix_sorts_28163 = math.random(0, 1)
if choix_sorts_28163 == 0 then
pUnit:RegisterEvent('spell0_28163', 1, 1)
end
if choix_sorts_28163 == 1 then
pUnit:RegisterEvent('spell1_28163', 1, 1)
end
end

function mob28163_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28163', math.random(1500, 3000), 1)
end

function mob28163_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28163_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28163_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28163, 1, 'mob28163_Action')
RegisterUnitEvent(28163, 2, 'mob28163_Leave')
RegisterUnitEvent(28163, 3, 'mob28163_Kill')
RegisterUnitEvent(28163, 4, 'mob28163_Die')
